import React, { Component, PropTypes } from 'react'
import { browserHistory,hashHistory, Router } from 'react-router'
import { Provider } from 'react-redux'

import {DevTool} from '../store/createStore';

class AppContainer extends Component {

    shouldComponentUpdate () {
        return false
    }

    render () {
        const { routes, store } = this.props

        return (
            <Provider store={store}>
                <div style={{ height: '100%' }}>
                    <DevTool />
                    <Router history={hashHistory} children={routes} />
                </div>
            </Provider>
        )
    }
}

export default AppContainer
